import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class DashLine extends StatelessWidget {
  double height;
  double width;
  int itemCount;
  Widget dotWidget;
  Widget spaceWidget;

  DashLine({
    required this.height,
    required this.width,
    required this.itemCount,
    required this.dotWidget,
    required this.spaceWidget,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      width: width,
      height: height,
      child: ListView.separated(
        shrinkWrap: true,
        physics: NeverScrollableScrollPhysics(),
        itemBuilder: (ctx, index) {
          return dotWidget;
        },
        separatorBuilder: (ctx, index) {
          return spaceWidget;
        },
        itemCount: itemCount,
      ),
    );
  }
}
